﻿@if (Request.IsAuthenticated) {
    <div id="wrapper">
        
        ¡Bienvenido:@User.Identity.Name!,Al Sistema EventSys [@DateTime.Now] @*@Html.ActionLink(User.Identity.Name,"Index","Home", routeValues: null, htmlAttributes: new { @class = "username", title = "Administrar" })!*@
       
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            @Html.ActionLink("Cambiar Contraseña", "Manage","Account")
            <a href="javascript:document.getElementById('logoutForm').submit()">Cerrar sesión</a>
           
        }
    </div>
} else {
    <ul>
        @*<li>@Html.ActionLink("Registrarse", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>*@
        <li>@Html.ActionLink("Iniciar sesión", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
